/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Ver_Factura.java
 *
 * Created on 23/05/2010, 11:11:13 AM
 */

package Interfaces;

/**
 *
 * @author Karla Ruiz
 */
public class Ver_Factura extends javax.swing.JFrame {

    /** Creates new form Ver_Factura */
    public Ver_Factura() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLayeredPane1 = new javax.swing.JLayeredPane();
        titulo = new javax.swing.JLabel();
        usuario = new javax.swing.JComboBox();
        lcodigo = new javax.swing.JLabel();
        lusuario = new javax.swing.JLabel();
        codigo = new javax.swing.JComboBox();
        factura = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        atras = new javax.swing.JButton();
        consultar = new javax.swing.JButton();
        imagen = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Consultar Factura");
        setMinimumSize(new java.awt.Dimension(500, 400));

        titulo.setFont(new java.awt.Font("Tahoma", 1, 18));
        titulo.setForeground(new java.awt.Color(255, 255, 255));
        titulo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        titulo.setText("Factura");
        titulo.setBounds(190, 10, 110, 29);
        jLayeredPane1.add(titulo, javax.swing.JLayeredPane.DEFAULT_LAYER);

        usuario.setBounds(50, 90, 120, -1);
        jLayeredPane1.add(usuario, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lcodigo.setForeground(new java.awt.Color(255, 255, 255));
        lcodigo.setText("Codigo de factura");
        lcodigo.setBounds(340, 70, 120, -1);
        jLayeredPane1.add(lcodigo, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lusuario.setForeground(new java.awt.Color(255, 255, 255));
        lusuario.setText("Usuario");
        lusuario.setBounds(50, 70, 60, -1);
        jLayeredPane1.add(lusuario, javax.swing.JLayeredPane.DEFAULT_LAYER);

        codigo.setBounds(340, 90, 120, -1);
        jLayeredPane1.add(codigo, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "Objeto / Entrada", "Precio"
            }
        ));
        jTable1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        factura.setViewportView(jTable1);

        factura.setBounds(30, 140, -1, 180);
        jLayeredPane1.add(factura, javax.swing.JLayeredPane.DEFAULT_LAYER);

        atras.setText("Atrás");
        atras.setBounds(70, 350, 100, -1);
        jLayeredPane1.add(atras, javax.swing.JLayeredPane.DEFAULT_LAYER);

        consultar.setText("Consultar");
        consultar.setBounds(340, 350, 90, -1);
        jLayeredPane1.add(consultar, javax.swing.JLayeredPane.DEFAULT_LAYER);

        imagen.setForeground(new java.awt.Color(255, 255, 255));
        imagen.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Sudafrica_2010_2.png"))); // NOI18N
        imagen.setBounds(0, 0, 500, 400);
        jLayeredPane1.add(imagen, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 500, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Ver_Factura().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton atras;
    private javax.swing.JComboBox codigo;
    private javax.swing.JButton consultar;
    private javax.swing.JScrollPane factura;
    private javax.swing.JLabel imagen;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JLabel lcodigo;
    private javax.swing.JLabel lusuario;
    private javax.swing.JLabel titulo;
    private javax.swing.JComboBox usuario;
    // End of variables declaration//GEN-END:variables

}
